<?php

declare(strict_types=1);

namespace App\Info\Model;

use Mine\MineModel;

/**
 * @property int $id 广告自增标识编号
 * @property int $ap_id 广告位id
 * @property string $adv_title 广告内容描述
 * @property string $adv_sub_title
 * @property string $up_img 广告图片
 * @property string $adv_content 广告内容
 * @property string $jump_url 跳转
 * @property string $adv_start_time 广告开始时间
 * @property string $adv_end_time 广告结束时间
 * @property int $order_sort 幻灯片排序
 * @property int $click_num 广告点击率
 * @property int $is_allow 会员购买的广告是否通过审核0未审核1审核已通过2审核未通过
 * @property int $created_by 创建者
 * @property int $updated_by 更新者
 * @property int $status 状态
 * @property int $create_time 创建时间
 * @property int $update_time 更新时间
 */
class InfoAdv extends MineModel
{
    protected ?string $dateFormat = 'U';
    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'info_adv';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'ap_id', 'adv_title','adv_sub_title', 'up_img', 'adv_content', 'jump_url', 'adv_start_time', 'adv_end_time', 'order_sort', 'click_num', 'is_allow', 'created_by', 'updated_by', 'status', 'create_time', 'update_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'ap_id' => 'integer', 'order_sort' => 'integer', 'click_num' => 'integer', 'is_allow' => 'integer', 'created_by' => 'integer', 'updated_by' => 'integer', 'status' => 'integer', 'create_time' => 'integer', 'update_time' => 'integer'];
}
